package com.joysuch.wwyt.core.bean;

import cn.zlg.common.springmvc.validate.constraints.NotNull;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @Author ZhangDong
 * @Date 2020/6/10 11:36
 */
@Data
public class MailSettingBean {

    @ApiModelProperty("主键id -修改时有效")
    private Long id;

    @ApiModelProperty("服务器地址")
    @NotBlank(message = "服务器地址不能为空")
    private String host;

    @ApiModelProperty("服务器端口")
    @NotBlank(message = "服务器端口不能为空")
    private String port;

    @ApiModelProperty("用户名-客户端")
    @NotBlank(message = "用户名不能为空")
    private String userName;

    @ApiModelProperty("客户端授权码")
    @NotBlank(message = "客户端授权码不能为空")
    private String password;

    @ApiModelProperty("协议")
    @NotBlank(message = "协议不能为空")
    private String protocol;

    @ApiModelProperty("通知方式")
    @NotNull(message = "通知方式不能为空")
    private String notifyWay;
}
